import service from "@/utils/request.js"

export interface requestParams {
  gender?: string,
  type?: string, 
  major?: string,
  minor?: string
}

const getCategory = ( params : requestParams ) : Promise => {
  return service.request({
    method: 'get',
    url: '/category',
    params
  })
}

export { getCategory }